﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Telerik.WinControls.Enumerations;

namespace QuanLyNhaSach
{
    public partial class frmDanhMucKhachHang : Form
    {
        public frmDanhMucKhachHang()
        {
            InitializeComponent();
        }
        #region "Design"
        private void caihinh()
        {
            bt_them.TextAlignment = ContentAlignment.TopCenter;
            bt_them.TextImageRelation = TextImageRelation.ImageAboveText;
            bt_them.ImageAlignment = ContentAlignment.BottomCenter;
        }

        private void bt_them_ToggleStateChanged(object sender, Telerik.WinControls.UI.StateChangedEventArgs args)
        {
            if (!(bt_them.ToggleState == ToggleState.On))
            {
                bt_them.ImageIndex = 0;
                caihinh();
                bt_them.Text = "Tạo mới";
            }
            else 
            {
                bt_them.ImageIndex = 1;
                caihinh();
                bt_them.Text = "Lưu";
            }
        }
        private void bt_sua_ToggleStateChanged(object sender, Telerik.WinControls.UI.StateChangedEventArgs args)
        {
            if (!(bt_sua.ToggleState == ToggleState.On))
            {
                bt_sua.ImageIndex = 2;
                caihinh();
                bt_sua.Text = "Sửa";
            }
            else
            {
                bt_sua.ImageIndex = 1;
                caihinh();
                bt_sua.Text = "Lưu";
            }
        }
        #endregion

     




    }
}
